package com.cq.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherMytaskMapper;
import com.cq.teacher.domain.TeacherMytask;
import com.cq.teacher.service.ITeacherMytaskService;

/**
 * 我的任务Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherMytaskServiceImpl implements ITeacherMytaskService
{
    @Autowired
    private TeacherMytaskMapper teacherMytaskMapper;

    /**
     * 查询我的任务
     * 
     * @param id 我的任务主键
     * @return 我的任务
     */
    @Override
    public TeacherMytask selectTeacherMytaskById(Long id)
    {
        return teacherMytaskMapper.selectTeacherMytaskById(id);
    }

    /**
     * 查询我的任务列表
     * 
     * @param teacherMytask 我的任务
     * @return 我的任务
     */
    @Override
    public List<TeacherMytask> selectTeacherMytaskList(TeacherMytask teacherMytask)
    {
        return teacherMytaskMapper.selectTeacherMytaskList(teacherMytask);
    }

    /**
     * 新增我的任务
     * 
     * @param teacherMytask 我的任务
     * @return 结果
     */
    @Override
    public int insertTeacherMytask(TeacherMytask teacherMytask)
    {
        return teacherMytaskMapper.insertTeacherMytask(teacherMytask);
    }

    /**
     * 修改我的任务
     * 
     * @param teacherMytask 我的任务
     * @return 结果
     */
    @Override
    public int updateTeacherMytask(TeacherMytask teacherMytask)
    {
        return teacherMytaskMapper.updateTeacherMytask(teacherMytask);
    }

    /**
     * 批量删除我的任务
     * 
     * @param ids 需要删除的我的任务主键
     * @return 结果
     */
    @Override
    public int deleteTeacherMytaskByIds(Long[] ids)
    {
        return teacherMytaskMapper.deleteTeacherMytaskByIds(ids);
    }

    /**
     * 删除我的任务信息
     * 
     * @param id 我的任务主键
     * @return 结果
     */
    @Override
    public int deleteTeacherMytaskById(Long id)
    {
        return teacherMytaskMapper.deleteTeacherMytaskById(id);
    }
}
